package com.hc.scheduling;

import com.hc.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


/**
 * @author LiuZhiHao
 * @date 2019/12/8 10:37
 * 描述:
 **/
@Component
public class RefrigeratorSc {

    @Autowired
    private QcEquipmentService qcEquipmentService;

    @Autowired
    private TriplicitiesService triplicitiesService;


    @Scheduled(cron = "0 0 4 * * ?")
    public void insetRefrigeratormv(){
        triplicitiesService.insetRefrigeratormv(null);
    }

    @Scheduled(cron = "0 0 4 * * ?")
    public void insetIncubatormv(){
        triplicitiesService.insetIIncubatormvLabSystem(null);
        triplicitiesService.insetEnvironmentmvmv(null);
    }

    @Scheduled(cron = "0 0 5 * * ?")
    public void sIncubaSnapshot(){
        qcEquipmentService.snapshotTest(null);
    }




}
